﻿

var InsertAdmin = () => {
    var name = $("#Aname").val();
    var account = $("#Account").val();
    var password = $("#Password").val();
    $.post("/Admin/AddAdmin", { Account: account, Password: password, name:name}).then((res) =>
    {
        location.href = "/Admin/AdminInfo";
    })
}